package com.zhy.redis.init;

import org.springframework.stereotype.Component;

/**
 * @author 随缘而愈
 * @version 1.0
 * @description TODO
 * @date 26/1/2024 上午11:58
 */
@Component
public abstract class AbstractCache {

    public void initCache(){}

    public <T> T  getCache(String key){
        return null;
    }

    public void clearCache(){}

    public void reloadCache(){
        clearCache();
        initCache();
    }
}
